package com.stargate.bd.dao;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.ArrayList;

import com.stargate.bd.ConnectionBD;

public abstract class DAO<T> {
	
	protected Connection connection = ConnectionBD.getConnection();
	
	public abstract ArrayList<T> selectAll() throws SQLException;
	
	public abstract T select(T bean) throws SQLException;
	
	public abstract void update(T bean) throws SQLException;

	public abstract void delete(T bean) throws SQLException;
	
	public abstract void insert(T bean) throws SQLException;
	
}
